public class Test {
    public static void goToSport(Sport s)
    {
        s.playBasketball();
    }
    public  static void goToResataurant(Person p)
    {
            p.eat();
    }

    public static void main(String[] args) {
        SportTeacher sp=new SportTeacher();
        sp.age=30;
        sp.name="周晓斌";


        SportStudent ss=new SportStudent();
        ss.name="叶知秋";
        ss.age=18;

        goToSport(sp);
        goToSport(ss);
        goToResataurant(sp);
        goToResataurant(ss);
    }
}